//
//  YQWebManager.h
//  iyuanqi
//
//  Created by czl on 2017/7/27.
//  Copyright © 2017年 czl. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BANetManager.h"

@interface YQWebManager : NSObject

#pragma mark 登录
+ (void)loginIn:(NSString*)username password:(NSString*)password withSuccessBlock:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 注册
+ (void)registerUser:(NSString*)username password:(NSString*)password email:(NSString*)email withSuccessBlock:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 获取用户信息
+ (void)getUserInfo:(NSString*)uid withSuccessBlock:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 获取首页轮播图
+ (void)getBanners:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 获取论坛列表
+ (void)getForumList:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 获取帖子列表
+ (void)getArticleList:(NSString*)fid type:(NSInteger)type page_l:(NSInteger)page_l page_r:(NSInteger)page_r withSuccessBlock:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 获取单条帖子
+ (void)getArticleDetail:(NSString*)tid withSuccessBlock:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 获取评论
+ (void)getReplys:(NSString*)tid withSuccessBlock:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 发表主题
+ (void)postTopic:(NSString*)fid subject:(NSString*)subject message:(NSString*)message imageArray:(NSArray<UIImage*>*)imageArray withSuccessBlock:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 回复主题
+ (void)postReply:(NSString*)tid message:(NSString*)message imageArray:(NSArray<UIImage*>*)imageArray withSuccessBlock:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 收藏文章
+ (void)collectarticle:(NSString*)tid withSuccessBlock:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 获取某人发表的文章
+ (void)getUserPostArticles:(NSString*)uid page_l:(int)page_l withSuccessBlock:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

#pragma mark 获取某人收藏的文章
+ (void)getUserCollectArticles:(NSString*)uid page_l:(int)page_l withSuccessBlock:(BAResponseSuccess)successBlock withFailureBlock:(BAResponseFail)failureBlock;

@end
